package com.msmall.base.util;

public class ConstantDB {

	public static final String USER_SETTING_SEP = "##";
	public static final String USER_SETTING_EQ = "=";
	public static final Integer USER_SETTING_PRIVACY_VALUE_ALL = 1; //用户隐私设置所有人可见
	public static final Integer USER_SETTING_PRIVACY_VALUE_MEMBER = 2; //用户隐私设置仅会员可见 ,需要可见的会员等级，默认/没有，则全部
	public static final Integer USER_SETTING_PRIVACY_VALUE_ROSTER = 3; //用户隐私设置仅好友可见
	public static final Integer USER_SETTING_PRIVACY_VALUE_ONLY = 4; //用户隐私设置对特定的人可见
	public static final Integer USER_SETTING_PRIVACY_VALUE_NONE = 5; //用户隐私设置所有人不可见
	public static final String USER_SETTING_PRIVACY_VALUE_MEMBER_LEVEL = "privacy_member_level"; //用户隐私设置仅会员可见,可见的会员等级
	public static final String USER_SETTING_PRIVACY_BIRTHDAY = "privacy_birthday";
	public static final String USER_SETTING_PRIVACY_RESIDENCE = "privacy_residence";
	
	/**
	 * 用户拥有推荐问答的权限KEY
	 */
	public static final String USER_SETTING_KEY_COMMEND_QUESTION = "COMMEND_QUESTION";
	/**
	 * 用户拥有推荐问答的权限VALUE 最高权限
	 */
	public static final String USER_SETTING_VALUE_COMMEND_QUESTION_TOP = "COMMEND_QUESTION_TOP";
	
	/**
	 * 用户拥有删除问答的权限KEY
	 */
	public static final String USER_SETTING_KEY_REMOVE_QUESTION = "REMOVE_QUESTION";
	/**
	 * 用户拥有删除问答的权限VALUE 最高权限
	 */
	public static final String USER_SETTING_VALUE_REMOVE_QUESTION_TOP = "REMOVE_QUESTION_TOP";
	
	/**
	 * WIKI 操作相关 Begin
	 */
	
	/**
	 * 用户拥有推荐百科的权限KEY
	 */
	public static final String USER_SETTING_KEY_COMMEND_WIKI = "COMMEND_WIKI";
	/**
	 * 用户拥有推荐百科的权限VALUE 最高权限
	 */
	public static final String USER_SETTING_VALUE_COMMEND_WIKI_TOP = "COMMEND_WIKI_TOP";
	
	/**
	 * 用户拥有创建百科文章的权限KEY
	 */
	public static final String USER_SETTING_KEY_CREATE_WIKI = "CREATE_WIKI";
	/**
	 * 用户拥有创建百科文章的权限VALUE 最高权限
	 */
	public static final String USER_SETTING_VALUE_CREATE_WIKI_TOP = "CREATE_WIKI_TOP";
	/**
	 * 用户拥有更新百科文章的权限KEY
	 */
	public static final String USER_SETTING_KEY_UPDATE_WIKI = "UPDATE_WIKI";
	/**
	 * 用户拥有更新百科文章的权限VALUE 最高权限
	 */
	public static final String USER_SETTING_VALUE_UPDATE_WIKI_TOP = "UPDATE_WIKI_TOP";
	/**
	 * 用户拥有删除百科文章的权限KEY
	 */
	public static final String USER_SETTING_KEY_REMOVE_WIKI = "REMOVE_WIKI";
	/**
	 * 用户拥有删除百科文章的权限VALUE 最高权限
	 */
	public static final String USER_SETTING_VALUE_REMOVE_WIKI_TOP = "REMOVE_WIKI_TOP";
	
	/**
	 * WIKI 操作相关 End
	 */
	
	/**
	 * Cookbook 操作相关 Begin
	 */
	
	/**
	 * 用户拥有推荐食谱的权限KEY
	 */
	public static final String USER_SETTING_KEY_COMMEND_COOKBOOK = "COMMEND_COOKBOOK";
	/**
	 * 用户拥有推荐食谱的权限VALUE 最高权限
	 */
	public static final String USER_SETTING_VALUE_COMMEND_COOKBOOK_TOP = "COMMEND_COOKBOOK_TOP";
	
	/**
	 * 用户拥有创建食谱文章的权限KEY
	 */
	public static final String USER_SETTING_KEY_CREATE_COOKBOOK = "CREATE_COOKBOOK";
	/**
	 * 用户拥有创建食谱文章的权限VALUE 最高权限
	 */
	public static final String USER_SETTING_VALUE_CREATE_COOKBOOK_TOP = "CREATE_COOKBOOK_TOP";
	/**
	 * 用户拥有更新食谱文章的权限KEY
	 */
	public static final String USER_SETTING_KEY_UPDATE_COOKBOOK = "UPDATE_COOKBOOK";
	/**
	 * 用户拥有更新食谱文章的权限VALUE 最高权限
	 */
	public static final String USER_SETTING_VALUE_UPDATE_COOKBOOK_TOP = "UPDATE_COOKBOOK_TOP";
	/**
	 * 用户拥有删除食谱文章的权限KEY
	 */
	public static final String USER_SETTING_KEY_REMOVE_COOKBOOK = "REMOVE_COOKBOOK";
	/**
	 * 用户拥有删除食谱文章的权限VALUE 最高权限
	 */
	public static final String USER_SETTING_VALUE_REMOVE_COOKBOOK_TOP = "REMOVE_COOKBOOK_TOP";
	
	/**
	 * Cookbook 操作相关 End
	 */
	
	
	/**
	 * Klg 操作相关 Begin
	 */
	
	/**
	 * 用户拥有推荐知识的权限KEY
	 */
	public static final String USER_SETTING_KEY_COMMEND_KLG = "COMMEND_KLG";
	/**
	 * 用户拥有推荐知识的权限VALUE 最高权限
	 */
	public static final String USER_SETTING_VALUE_COMMEND_KLG_TOP = "COMMEND_KLG_TOP";
	
	/**
	 * 用户拥有创建知识文章的权限KEY
	 */
	public static final String USER_SETTING_KEY_CREATE_KLG = "CREATE_KLG";
	/**
	 * 用户拥有创建知识文章的权限VALUE 最高权限
	 */
	public static final String USER_SETTING_VALUE_CREATE_KLG_TOP = "CREATE_KLG_TOP";
	/**
	 * 用户拥有更新知识文章的权限KEY
	 */
	public static final String USER_SETTING_KEY_UPDATE_KLG = "UPDATE_KLG";
	/**
	 * 用户拥有更新知识文章的权限VALUE 最高权限
	 */
	public static final String USER_SETTING_VALUE_UPDATE_KLG_TOP = "UPDATE_KLG_TOP";
	/**
	 * 用户拥有删除知识文章的权限KEY
	 */
	public static final String USER_SETTING_KEY_REMOVE_KLG = "REMOVE_KLG";
	/**
	 * 用户拥有删除知识文章的权限VALUE 最高权限
	 */
	public static final String USER_SETTING_VALUE_REMOVE_KLG_TOP = "REMOVE_KLG_TOP";
	
	/**
	 * Klg 操作相关 End
	 */
	
	
	
	public static final Short AUDIT_NONE = Short.valueOf((short)1); //审核未处理
	public static final Short AUDIT_TODO = Short.valueOf((short)2); // 已经处理，但是不确定
	public static final Short AUDIT_PASS = Short.valueOf((short)3); // 审核通过
	public static final Short AUDIT_REJECT = Short.valueOf((short)4); // 不通过
	
	public static final Short UNLOCK_STATUS = Short.valueOf((short)1);
	public static final Short LOCK_STATUS = Short.valueOf((short)2);
	public static final Short LOCK_STATUS_FOREVER = Short.valueOf((short)-1);
	
	public static final Short GENDER_UNKNOWN = Short.valueOf((short)0);
	public static final Short GENDER_MALE = Short.valueOf((short)1);
	public static final Short GENDER_FEMALE = Short.valueOf((short)2);
	
	public static final String AVATAR_DEFAULT = "images/avatar_default.jpg";
	
	public static final String ALBUM_COVER_DEFAULT_FILE_PATH = "images";
	public static final String ALBUM_COVER_DEFAULT_FILE_NAME = "avatar_default";
	public static final String ALBUM_COVER_DEFAULT_FILE_EXT = "jpg";
	
	public static final String ALBUM_COVER_DEFAULT_FILE_PATH_LOCKED = "images";
	public static final String ALBUM_COVER_DEFAULT_FILE_NAME_LOCKED = "need_pass_135";
	public static final String ALBUM_COVER_DEFAULT_FILE_EXT_LOCKED = "png";
	
	public static final Short AVALIABLE = Short.valueOf((short)1);
	public static final Short UNAVALIABLE = Short.valueOf((short)-1);
	
	/**
	 * 转载 1， 原创2
	 */
	public static final Short FROM_TRANSFER = Short.valueOf((short)1);
	public static final Short FROM_ORIGINAL = Short.valueOf((short)2);
	
	/**
	 * 问题未解决
	 */
	public static final Short QUESTION_TERMINAL_NO = Short.valueOf((short)1);
	/**
	 * 问题已解决
	 */
	public static final Short QUESTION_TERMINAL_YES = Short.valueOf((short)2);
	
	public static final Short ELITE = Short.valueOf((short)1);
	public static final Short UNELITE = Short.valueOf((short)-1);
	
	public static final Short TOP = Short.valueOf((short)1);
	public static final Short UNTOP = Short.valueOf((short)-1);
	
	public static final Short COMMEND = Short.valueOf((short)1);
	public static final Short UNCOMMEND = Short.valueOf((short)-1);
	
	public static final Short NOTICE = Short.valueOf((short)1);
	public static final Short UNNOTICE = Short.valueOf((short)-1);
	
	public static final Short REPLY = Short.valueOf((short)1);
	public static final Short UNREPLY = Short.valueOf((short)-1);
	
	public static final Short USER_AGENT_TYPE_WML = Short.valueOf((short)2);
	public static final Short USER_AGENT_TYPE_HTML = Short.valueOf((short)1);
	
	public static final Integer VISIBLE = Integer.valueOf(1); //1显示
	public static final Integer UNVISIBLE = Integer.valueOf(-1); // -1 隐藏
	
	public static final Integer VIP_NORMAL_LEVELS = Integer.valueOf(0); //普通用户
	public static final Integer LEVELS_INIT = Integer.valueOf(1); //用户初始等级
	
	public static final String MESSAGE_CONTENT_ROSTER = "好友请求";
	public static final String MESSAGE_TITLE_TEAM_INVITE = "群组邀请";
	public static final Integer MESSAGE_TYPES_ROSTER_REQUEST = Integer.valueOf(10); //
	public static final Integer MESSAGE_TYPES_ROSTER_ACCEPT = Integer.valueOf(11); //
	public static final Integer MESSAGE_TYPES_ROSTER_REJECT = Integer.valueOf(12); //
	public static final Integer MESSAGE_TYPES_TEAM_INVITE = Integer.valueOf(20); //群组邀请
	public static final Integer MESSAGE_TYPES_TEAM_JOIN = Integer.valueOf(21); //用户申请加入群组时，通知组长/副组长
	public static final Integer MESSAGE_TYPES_TEAM_JOIN_ACCEPT = Integer.valueOf(22);//组长/副组长 通过用户申请,通知用户
	public static final Integer MESSAGE_TYPES_TEAM_JOIN_REJECT = Integer.valueOf(23);//组长/副组长 拒绝用户申请,通知用户
	public static final Integer MESSAGE_TYPES_TEAM_LEAVE_USER = Integer.valueOf(24);//用户退出,通知用户
	public static final Integer MESSAGE_TYPES_TEAM_POSITION = Integer.valueOf(25);//用户退出,通知用户
	
	public static final Integer DIRECTION_CURRENT = 0; //有翻页时，表示当前页 
	public static final Integer DIRECTION_PREVIOUS = 1; //有翻页时，表示向前
	public static final Integer DIRECTION_NEXT = 2; //有翻页时，表示向后 
	
	public static final Short READ = Short.valueOf((short)1); //消息或留言已读
	public static final Short UNREAND = Short.valueOf((short)-1); //未读
	
	public static final Integer CASES_POSITION_START = 1; //CASES 开始
	public static final Integer CASES_POSITION_END = -1;//CASES 结束
	public static final Integer CASES_POSITION_ANSWER_RIGHT = 1;//CASES 正确结束
	public static final Integer CASES_POSITION_ANSWER_WRONG = -1;//CASES 错误结束
	public static final Integer CASES_LIMITS_UNLIMIT = -1; //CASES玩的人数没有限制
	
	public static final Integer SITE_TYPES_MOUNTAIN = 1; //山
	public static final Integer SITE_TYPES_LAKE = 2; //水
	
	public static final Integer VOTE_MODULE_TRAVEL = 1;
	
	public static final Integer VOTE_TYPES_POSITIVE = 2;
	public static final Integer VOTE_TYPES_NEGATIVE = 1;
	
	public static final Integer ROSTER_REQUEST = 1; // 请求
	public static final Integer ROSTER_UNHANDLE = -1; // 未处理
	public static final Integer ROSTER_AGREE = 2; // 同意
	public static final Integer ROSTER_REJECT = -2; // 拒绝
	public static final Integer ROSTER_BLACKLIST = -3; // 黑名单主动方
	public static final Integer ROSTER_FORBIDDEN = -4; // 黑名单被动方
	public static final String ROSTER_GROUP_NAME_FRIENDS = "好友";
	public static final String ROSTER_GROUP_NAME_STRANGER = "陌生人";
	public static final String ROSTER_GROUP_NAME_BLACKLIST = "黑名单";
	public static final String ROSTER_GROUP_NAME_FORBIDDEN = "Forbidden";
	public static final Integer ROSTER_RANK_DEFAULT = 1; // 好友组默认等级
	
	/**推荐来源类型 
	 * 1:BBS 2Space 3问答 4知识
	 */
	public static final Short COMMEND_TYPE_BBS_TOPIC = Short.valueOf((short)1);
	public static final Short COMMEND_TYPE_SPACE_BLOG = Short.valueOf((short)2);
	public static final Short COMMEND_TYPE_QUESTION = Short.valueOf((short)3);
	public static final Short COMMEND_TYPE_KLG = Short.valueOf((short)4);
	
	/**
	 * 推荐的子类型，主要用来定位页面显示
	 * 0: 默认值,需要修改否则不可使用
	 * 1：BBS首页滚动图片
	 * 2：BBS首页标题新闻
	 * 3: BBS推荐话题
	 * 4: BBS首页各大版区推荐图片
	 * 5: BBS首页各大版区推荐图片下的帖子列表
	 * 6: 问答首页图片
	 * 7: 问答首页推荐问题
	 * 8: 妈妈关心的问题
	 * 9: 宝宝关心的问题
	 * 10: 知识主Segment首页推荐图片.comments字段存放segmentid
	 * 11: 知识主Segment首页推荐大标题.comments字段存放segmentid
	 * 12: 知识主Segment首页各子Segment的推荐.comments字段存放子segmentid
	 * 13: BBS首页标题新闻下面的小推荐
	 * 14: BBS首页公告
	 * 15：BBS首页各大版区标题新闻
	 * 16：BBS首页各大版区标题新闻下的帖子列表
	 * 
	 * 17:知识中关于妈妈的推荐(网站首页使用)
	 * 18:知识中关于宝宝的推荐(网站首页使用)
	 * 
	 * 19:网站首页滚动图片，从BBS获得
	 * 20:网站首页大标题新闻，从BBS获得
	 * 21:网站首页大标题新闻下小标题，从BBS获得
	 * 22:网站首页大标题新闻下小标题图片，从BBS获得
	 * 
	 * 23:网站首页Hot最右边图片，从BBS获得
	 * 24:网站首页BBS标题新闻，从BBS获得
	 * 25:网站首页BBS图片，从BBS获得
	 */
	public static final Integer COMMEND_DISPLAY_0 = 0;
	public static final Integer COMMEND_DISPLAY_1 = 1;
	public static final Integer COMMEND_DISPLAY_2 = 2;
	public static final Integer COMMEND_DISPLAY_3 = 3;
	public static final Integer COMMEND_DISPLAY_4 = 4;
	public static final Integer COMMEND_DISPLAY_5 = 5;
	
	public static final Integer COMMEND_DISPLAY_6 = 6;
	public static final Integer COMMEND_DISPLAY_7 = 7;
	public static final Integer COMMEND_DISPLAY_8 = 8;
	public static final Integer COMMEND_DISPLAY_9 = 9;
	public static final Integer COMMEND_DISPLAY_10 = 10;
	public static final Integer COMMEND_DISPLAY_11 = 11;
	public static final Integer COMMEND_DISPLAY_12 = 12;
	public static final Integer COMMEND_DISPLAY_13 = 13;
	public static final Integer COMMEND_DISPLAY_14 = 14;
	public static final Integer COMMEND_DISPLAY_15 = 15;
	public static final Integer COMMEND_DISPLAY_16 = 16;
	public static final Integer COMMEND_DISPLAY_17 = 17;
	public static final Integer COMMEND_DISPLAY_18 = 18;
	
	public static final Integer COMMEND_DISPLAY_19 = 19;
	public static final Integer COMMEND_DISPLAY_20 = 20;
	public static final Integer COMMEND_DISPLAY_21 = 21;
	public static final Integer COMMEND_DISPLAY_22 = 22;
	
	public static final Integer COMMEND_DISPLAY_23 = 23;
	public static final Integer COMMEND_DISPLAY_24 = 24;
	public static final Integer COMMEND_DISPLAY_25 = 25;
	
	/**
	 * 推荐等级
	 */
	public static final Short COMMEND_LEVEL_TOPEST = Short.valueOf((short)1); //最高级别
	public static final Short COMMEND_LEVEL_MIDDLE = Short.valueOf((short)2); //最高级别
	public static final Short COMMEND_LEVEL_LOW = Short.valueOf((short)3); //最高级别
	
	public static final Short ABUSE_TYPE_TOPIC = Short.valueOf((short)1);
	public static final Short ABUSE_TYPE_THREAD = Short.valueOf((short)2);
	public static final Short ABUSE_TYPE_BLOG = Short.valueOf((short)3);
	
	public static final Short LINK_TYPE_CHARS = Short.valueOf((short)1); // 文字友情链接
	public static final Short LINK_TYPE_IMAGE = Short.valueOf((short)2); //图片友情链接
	
	public static final Short KEYWORD_TYPES_LETTER = Short.valueOf((short)1); //文字类型关键字
	public static final Short KEYWORD_TYPES_IMAGE = Short.valueOf((short)2); //图片类型关键字
	
	public static final Short KEYWORD_TYPE_SITE_INDEX_WIKI_MOTHER = Short.valueOf((short)1); //整站首页妈妈字典关键字
	public static final Short KEYWORD_TYPE_SITE_INDEX_WIKI_BABY = Short.valueOf((short)2); //整站首页宝宝字典关键字
	public static final Short KEYWORD_TYPE_SITE_WIKI_MOTHER_BABY = Short.valueOf((short)3); //妈妈和宝宝字典关键字混合
	
	public static final Short KEYWORD_TYPE_COOKBOOK_MOTHER = Short.valueOf((short)4); //妈妈的食谱关键字
	public static final Short KEYWORD_TYPE_COOKBOOK_BABY = Short.valueOf((short)5); //宝宝的食谱关键字
	public static final Short KEYWORD_TYPE_COOKBOOK_MOTHER_BABY = Short.valueOf((short)6); //妈妈和宝宝食谱关键字混合
	
	public static final Short KEYWORD_TYPE_SITE_INDEX_TOP = Short.valueOf((short)7); //整站首页TOP下的关键字
	
	public static final String TEAM_DEFAULT_LOGO = "images/avatar_default.jpg";//组默认LOGO
	public static final String TEAM_TOPIC_SHARE_PUBLIC = "1";//群组内帖子是否共享到社区 1共享
	public static final String TEAM_TOPIC_SHARE_PUBLIC_UN = "2";
	public static final String TEAM_TOPIC_SHARE_TEAM = "1";//群组内帖子是否共享到联盟 1共享
	public static final String TEAM_TOPIC_SHARE_TEAM_UN = "2";//群组内帖子是否共享到联盟 2不共享
	
	public static Long BBS_BOARD_ID_TOP = 0L; //论坛顶层版区的父版区(不存在的版区)
	
	public static final Long CASCADE_ID_TOP = 0L;//文章分类最顶级ID
	
	public static final Long SEGMENT_ID_NAV = 1L;//导航栏目 & 知识
	public static final Long SEGMENT_ID_KLG_MOTHER_MAX = 114L;//导航栏目 & 知识 妈妈/宝宝分界线 如果要修改，需要修改数据库
	public static final Long SEGMENT_ID_QUESTION_NAV = 2L;//问题首页
	public static final Long SEGMENT_ID_TIMELINE_NAV = 3L;//成长历程
	public static final Long SEGMENT_ID_WIKI_NAV = 4L;//育儿字典/百科
	
	public static final Long SEGMENT_ID_COOKBOOK_NAV = 5L;//食谱
	public static final Long SEGMENT_ID_COOKBOOK_MOTHER_NAV = 51L;//妈妈的食谱
	public static final Long SEGMENT_ID_COOKBOOK_BABY_NAV = 52L;//宝宝的食谱
}